<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/dep.js"></script>
    <script src="./js/watcher.js"></script>
    <script src="./js/observer.js"></script>
    <script src="./js/compiler.js"></script>
    <script src="./js/vue.js"></script>
</head>

<body>
    <div id="app">
        <p>{{age}}</p>
        <p>{{name}}</p>
        <p>{{hobby.first}}</p>
        <div v-text = 'age'></div>
        <input type="text" v-model = 'name'/>
        <div v-html = "msg"></div>
        <button  v-on:click = "clickbtn(xuke,23)">点我</button>
        <button  v-on:click = "clickbtn2">点我2</button>
    </div>
    <script>
        const vm = new Vue({
            el: '#app',
            data: {
                msg:'<p ><span v-text = "sss"></span></p>',
                age: 22,
                sss:'sssss',
                name: 'xuke',
                hobby: {
                    first: 'eat'
                }
            },
            methods:{
                clickbtn:(num,num1) => {
                    console.log("点到我啦！！","我是"+num,"年龄"+num1)
                },
                clickbtn2:()=>{
                    console.log("点到我啦！！22")
                }
            }
        })
    </script>
</body>

</html>